package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.motong.gongdan.vo.resp.NameVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "departments")
@ApiModel(description = "部门类")
public class Departments extends PublicPo{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String code;
    private String name;
    @TableField("del_flag")
    private Integer delFlag;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("create_person")
    private Integer createPerson;
    @ApiModelProperty(value = "用户ids")
    private String ids;

    @TableField(exist = false)
    private String createName;
    @TableField(exist = false)
    private List<String> depUsers;
    @TableField(exist = false)
    private List<NameVo> users;

}
